-- GENERATED SPELL FOR [Earthborer] --


function spell0_11320(pUnit, Event) --@Earthborer Acid,n/a--
pUnit:FullCastSpellOnTarget(18070,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11320', 30288, 1)
end

function Sorts_11320(pUnit, Event)
local choix_sorts_11320 = math.random(0, 0)
if choix_sorts_11320 == 0 then
pUnit:RegisterEvent('spell0_11320', 1, 1)
end
end

function mob11320_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11320', math.random(1500, 3000), 1)
end

function mob11320_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11320_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11320_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11320, 1, 'mob11320_Action')
RegisterUnitEvent(11320, 2, 'mob11320_Leave')
RegisterUnitEvent(11320, 3, 'mob11320_Kill')
RegisterUnitEvent(11320, 4, 'mob11320_Die')
